<template>
  <div class="not-found">
    <h2>not-found~</h2>
    <div class="btn">
      <el-button type="primary" @click="handleBack" size=""
        >返回上一级</el-button
      >
    </div>
  </div>
</template>

<script>
import { useRouter } from "vue-router";
export default {
  setup() {
    const router = useRouter();
    const handleBack = () => {
      router.back();
    };
    return {
      handleBack,
    };
  },
};
</script>

<style lang="less" scoped>
.not-found {
  text-align: center;
  .btn {
    margin-top: 100px;
  }
}
</style>
